package com.adou.d3;

public class DebugDemo {
    public static void main(String[] args) {
        int[] num = {12,4,22,5,7};

        int max = num[0];

        for (int i=1; i<num.length;i++) {
            if(max < num[i]) {
                max = num[i];
            }
        }
        System.out.println(max);
    }
}
